package cn.spring.dao.impl;

import cn.spring.dao.GreetingDao;
import cn.spring.entity.Greeting;

public class GreetingDaoImpl implements GreetingDao {
    private GreetingDao dao;

    public GreetingDao getDao() {
        return dao;
    }

    public void setDao(GreetingDao dao) {
        this.dao = dao;
    }

    @Override
    public Greeting print(Greeting greeting) {
        return dao.print(greeting);
    }

    public GreetingDaoImpl(){}

    public  GreetingDaoImpl(GreetingDao dao){
        this.dao = dao;
    }
}
